onMenuItemSelected

abstract fun onMenuItemSelected(@NonNull menuItem: MenuItem): Boolean(source)

Called by the MenuHost when a MenuItem is selected from the menu.

Return

true if the given menu item is handled by this menu provider, false otherwise

Parameters

menuItem

the menu item that was selected